<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="./../template/template_park.xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html">

    <ui:define name="content">
        <h:form>
            <h:commandLink value="Home" action="#{vagaMB.home}"/>

            <h:messages/>

            <fieldset>
                <legend>Consultar Vagas</legend>


                <h:panelGrid columns="2">
                    <h:column>
                        <h:outputLabel for="inputCodigo" value="*Codigo:"/>
                    </h:column>
                    <h:column>
                        <h:inputText value="#{vagaMB.vagaConsulta.codigo}" id="inputCodigo"/>
                    </h:column>

                    <h:column>
                        <h:outputLabel for="inputCampus" value="*Campus:"/>
                    </h:column>

                    <h:column>
                        <h:inputText value="#{vagaMB.vagaConsulta.campus}" id="inputCampus"/>
                    </h:column>
                </h:panelGrid>

                <h:commandButton value="Consultar Vaga" action="#{vagaMB.consultar}"/>
                <h:commandButton value="Incluir Vaga" action="#{vagaMB.prepararInclusao}"/>
                <h:commandButton value="Limpar Campos" action="#{vagaMB.limparCamposConsulta}"/>
            </fieldset>
        </h:form>
    </ui:define>
</ui:composition>
